package bean;
/***********************************************************************
 * Module:  readerinfo.java
 * Author:  龙儿
 * Purpose: Defines the Class readerinfo
 ***********************************************************************/

import java.util.*;

/** @pdOid d04120ab-05d9-47f4-949b-43cf4a874b8c */
public class readerinfo {
   /** @pdOid a5fcf0c4-4c45-4d3e-a8eb-70da63316839 */
   public java.lang.String name;
   /** @pdOid 5cc5afbd-18ea-47bc-908d-3b1c53ea12f7 */
   public java.lang.String sex = "1";
   /** @pdOid 82815e1a-8ab2-4194-8f0f-f0c6a805e651 */
   public int age;
   /** @pdOid 50eb0627-bcfd-4644-938d-b8c71fa4f39b */
   public java.lang.String identityCard;
   /** @pdOid 896c075f-665c-4eed-a7c9-e6b62782ac10 */
   public java.util.Date date;
   /** @pdOid 3c8a59ce-8ce4-46d7-ac51-fa5dfd199d35 */
   public int maxNum = 3;
   /** @pdOid 785dc020-f638-4611-b705-e6a5118c4859 */
   public java.lang.String tel;
   /** @pdOid ef662883-0365-49f6-9166-e850135c2b08 */
   public float keepMoney;
   /** @pdOid 491a2613-dc12-4730-8c77-71e49fc227f7 */
   public int zj = 1;
   /** @pdOid baf81a55-088e-4393-a670-36aa14b92aae */
   public java.lang.String zy;
   /** @pdOid 186f593a-c9cb-46e6-8da6-07e555533f78 */
   public java.lang.String isbn;
   /** @pdOid 6dea1a9a-bd94-476f-aaa2-0d610ac3e883 */
   public java.util.Date bztime;
   
   /** @pdRoleInfo migr=no name=bookbrrow assc=reference4 coll=java.util.Collection impl=java.util.HashSet mult=0..* */
   public java.util.Collection<bookbrrow> bookbrrow;
   
   
   /** @pdGenerated default getter */
   public java.util.Collection<bookbrrow> getBookbrrow() {
      if (bookbrrow == null)
         bookbrrow = new java.util.HashSet<bookbrrow>();
      return bookbrrow;
   }
   
   /** @pdGenerated default iterator getter */
   public java.util.Iterator getIteratorBookbrrow() {
      if (bookbrrow == null)
         bookbrrow = new java.util.HashSet<bookbrrow>();
      return bookbrrow.iterator();
   }
   
   /** @pdGenerated default setter
     * @param newBookbrrow */
   public void setBookbrrow(java.util.Collection<bookbrrow> newBookbrrow) {
      removeAllBookbrrow();
      for (java.util.Iterator iter = newBookbrrow.iterator(); iter.hasNext();)
         addBookbrrow((bookbrrow)iter.next());
   }
   
   /** @pdGenerated default add
     * @param newBookbrrow */
   public void addBookbrrow(bookbrrow newBookbrrow) {
      if (newBookbrrow == null)
         return;
      if (this.bookbrrow == null)
         this.bookbrrow = new java.util.HashSet<bookbrrow>();
      if (!this.bookbrrow.contains(newBookbrrow))
      {
         this.bookbrrow.add(newBookbrrow);
         newBookbrrow.setReaderinfo(this);      
      }
   }
   
   /** @pdGenerated default remove
     * @param oldBookbrrow */
   public void removeBookbrrow(bookbrrow oldBookbrrow) {
      if (oldBookbrrow == null)
         return;
      if (this.bookbrrow != null)
         if (this.bookbrrow.contains(oldBookbrrow))
         {
            this.bookbrrow.remove(oldBookbrrow);
            oldBookbrrow.setReaderinfo((readerinfo)null);
         }
   }
   
   /** @pdGenerated default removeAll */
   public void removeAllBookbrrow() {
      if (bookbrrow != null)
      {
         bookbrrow oldBookbrrow;
         for (java.util.Iterator iter = getIteratorBookbrrow(); iter.hasNext();)
         {
            oldBookbrrow = (bookbrrow)iter.next();
            iter.remove();
            oldBookbrrow.setReaderinfo((readerinfo)null);
         }
      }
   }

}